<?php
/* @var $this ChangepasswordController */

$this->breadcrumbs=array(
	'Thay đổi mật khẩu',
);
?>
<div class="form" id="<?php echo Yii::app()->controller->id . '-' . Yii::app()->controller->action->id?>">
<?php
   $form = $this->beginWidget('CActiveForm',array(
      'id'=> Yii::app()->controller->id . '_' . Yii::app()->controller->action->id,
      'enableAjaxValidation'=>false,
      'enableClientValidation'=>true,
      'htmlOptions' => array(
         'class' => 'form-horizontal',
      ),
   ));
   ?>
   <p class="note">Những dòng đánh dấu <span class="required">*</span> là bắt buộc.</p>
   <?php 
      if($error_message != '')
         echo CHtml::tag('div',array('class' => 'errorSummary'),$error_message);
      if($message != '')
         echo CHtml::tag('div',array('class' => 'message-success'),$message);
   ?>
	<?php echo $form->errorSummary($model,'Kiểm tra lại các giá trị bạn vừa nhập vào'); ?>
   <input name="session_user" type="hidden" value="<?php echo $session_user?>"/>
   <input name="action_user" type="hidden" value="" id="action_user" />
   <div class="control-group">
      <?php echo $form->labelEx($model, 'oldPassword',array('class' => 'control-label'));?>
      <div class="controls">
         <?php echo $form->passwordField($model, 'oldPassword',array('value' => ''));?>
      </div>
   </div>
   <div class="control-group">
      <?php echo $form->labelEx($model, 'Password',array('class' => 'control-label'));?>
      <div class="controls">
         <?php echo $form->passwordField($model, 'Password',array('value' => ''));?>
      </div>
   </div>
   <div class="control-group">
      <?php echo $form->labelEx($model, 'repeatPassword',array('class' => 'control-label'));?>
      <div class="controls">
         <?php echo $form->passwordField($model, 'repeatPassword',array('value' => ''));?>
      </div>
   </div>
   <div class="form-actions">
      <?php echo CHtml::submitButton('Thêm mới',array('class' => 'btn btn-info'))?>
      <?php echo CHtml::resetButton('Làm lại',array('class' => 'btn btn-warning'))?>
	</div>
   <?php 
   $this->endWidget();
?>
</div>
